package br.com.naybee.framework.client.models;


public class TripletModel extends Model {

	/**
	 * 
	 */
	private static final long serialVersionUID = -5913832023231272563L;
	private String xmlFileName;

	public TripletModel() {
	}

	public Model add(String key, Object value, Boolean bool) {
		Model model = new Model();
		model.add("value", value).add("bool", bool);
		put(key, model);
		return this;
	}

	@Override
	public Model add(String key, Object value) {
		add(key, value, false);
		return this;
	}

	public void setXmlFileName(String xmlFileName) {
		this.xmlFileName = xmlFileName;
	}

	public String getXmlFileName() {
		return xmlFileName;
	}

	public String getString(String key) {
		Model model = getModel(key);
		return model.getStr("value");
	}

	public Boolean getBoolean(String key) {
		Model model = getModel(key);
		return model.getBoo("bool");
	}

}
